package org.example.day;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description: TODO
 * @Author wyatt
 * @Data 2025/04/03 17:04
 */
public class Solution2716 {

    public int minimizedStringLength(String s) {
        int sum = 0;

        List<Character> characterList = new ArrayList<>();

        for (int i = 0; i < s.length(); i++) {
            Character c = s.charAt(i);
            if(!characterList.contains(c)){
                characterList.add(c);
                sum++;
            }
        }

        return sum;
    }
}
